/*
 * @Descripttion:
 * @version:
 * @Author: kl2018
 * @Date: 2019-03-07 20:06:20
 * @LastEditors: kl2018
 * @LastEditTime: 2020-06-23 10:05:48
 */
import { Modal } from 'antd';
import { WeaLocaleProvider } from 'ecCom';

const getLabel = WeaLocaleProvider.getLabel;

function AlertModal(alertType, alertText, title = getLabel('15172', '系统提示'), onOk = () => { }) {
	return (
		Modal[alertType]({
			title,
			content: alertText,
			onOk: () => {
				onOk();
			},
			okText: getLabel('826', '确定'),
		})

	);
}

export default AlertModal;
